package org.neptune.api.request;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;

/**
 * @author lwl
 * @date 2019/7/16 13:30
 */
public class BaseRequest implements Serializable {

	private static final long serialVersionUID = -5356294165260799822L;

	private int start = 0;

	private int rows = 10;

	private int page = 1;

	private int limit = 10;

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	private String startTime;

	private String endTime;

	private String keywords;

	private int seckillCount = 100;

	private int funcType;

	public int getFuncType() {
		return funcType;
	}

	public void setFuncType(int funcType) {
		this.funcType = funcType;
	}

	public int getSeckillCount() {
		return seckillCount;
	}

	public void setSeckillCount(int seckillCount) {
		this.seckillCount = seckillCount;
	}

	public String getKeywords() {
		return StringUtils.trim(keywords);
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
}
